<script setup lang="ts">
import { ref } from 'vue';
import Child from './components/Child.vue'
const money = ref(100)
const car = ref('小黄车')
const changeMoney = (val: number) => {
  console.log('钱', val)
  money.value = money.value - val
}
const changeCar = (val: string) => {
  console.log('车', val)
  car.value = val
}
</script>

<template>
  <div class="app-page">
    app
    <Child :money="money" :car="car" @change-money="changeMoney" @change-car="changeCar"></Child>
  </div>
</template>

<style lang="scss" scoped></style>
